﻿#-*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name:        序列
# Purpose:
# Author:      SUMMVING
# Created:     12/08/2013
# Copyright:   (c) SUMMVING 2013
# Licence:     GPLv3
#-------------------------------------------------------------------------------

str1 = 'abcdef'
print "the length of str1 is",len(str1) #len()用于计算字符串的长度，输出：6
str2 = '1234'
print "str1 + str2 = ",(str1+str2)      #字符串相加,输出：abcdef1234
print ('c' in str1)                     #'c' in str1:询问字符c是否在字符串str1中
                                        #如果是，则返回真True，输出：True
for i in str1:                          #注意，str1不能写成srt1(),
    print 'i =',i
